package app.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("adminPage")
public class AdminPageController {
	//用户主页
    @RequestMapping("/index")
    public String index(){
    	return "admin/admin";
    }
	
    /*
     * 订单处理
     * */
	//订单列表
	@RequestMapping("/fixOrderList")
	public String fixOrderList(){
		return "admin/fixOrderList";
	}
	
	//订单处理
	@RequestMapping("/handleOrder/{fixOrderId}")
	public String handleOrder(@PathVariable("fixOrderId")int fixOrderId,Model model){
		model.addAttribute("fixOrderId", fixOrderId);
		return "admin/handleOrder";
	}	
	
	//信息列表
	@RequestMapping("/messageList")
	public String messageList(){
		return "admin/messageList";
	}	
	
	//状态信息列表
	@RequestMapping("/orderStatusList")
	public String orderStatusList(){
		return "admin/orderStatusList";
	}		
}
